home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / appkit / Control.h < prev    next >
Text File  |  1992-09-11  |  3KB  |  101 lines

  1. /*
  2.     Control.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "View.h"
  8.  
  9. @interface Control : View
  10. {
  11.     int                 tag;
  12.     id                  cell;
  13.     struct _conFlags {
  14. #ifdef __BIG_ENDIAN__
  15.     unsigned int        enabled:1;
  16.     unsigned int        editingValid:1;
  17.     unsigned int        ignoreMultiClick:1;
  18.     unsigned int        calcSize:1;
  19.     unsigned int        _drawingAncestor:1;
  20.     unsigned int        _RESERVED:11;
  21. #else
  22.     unsigned int        _RESERVED:11;
  23.     unsigned int        _drawingAncestor:1;
  24.     unsigned int        calcSize:1;
  25.     unsigned int        ignoreMultiClick:1;
  26.     unsigned int        editingValid:1;
  27.     unsigned int        enabled:1;
  28. #endif
  29.     }                   conFlags;
  30.     unsigned short      _reservedCshort1;
  31. }
  32.  
  33. + setCellClass:factoryId;
  34.  
  35. - initFrame:(const NXRect *)frameRect;
  36.  
  37. - free;
  38. - sizeToFit;
  39. - sizeTo:(NXCoord)width :(NXCoord)height;
  40. - calcSize;
  41. - cell;
  42. - setCell:aCell;
  43. - selectedCell;
  44. - target;
  45. - setTarget:anObject;
  46. - (SEL)action;
  47. - setAction:(SEL)aSelector;
  48. - (int)tag;
  49. - setTag:(int)anInt;
  50. - (int)selectedTag;
  51. - ignoreMultiClick:(BOOL)flag;
  52. - mouseDown:(NXEvent *)theEvent;
  53. - (int)mouseDownFlags;
  54. - (int)sendActionOn:(int)mask;
  55. - (BOOL)isContinuous;
  56. - setContinuous:(BOOL)flag;
  57. - (BOOL)isEnabled;
  58. - setEnabled:(BOOL)flag;
  59. - setFloatingPointFormat:(BOOL)autoRange left:(unsigned)leftDigits right:(unsigned)rightDigits;
  60. - (int)alignment;
  61. - setAlignment:(int)mode;
  62. - font;
  63. - setFont:fontObj;
  64. - setStringValueNoCopy:(char *)aString shouldFree:(BOOL)flag;
  65. - setStringValue:(const char *)aString;
  66. - setStringValueNoCopy:(const char *)aString;
  67. - setIntValue:(int)anInt;
  68. - setFloatValue:(float)aFloat;
  69. - setDoubleValue:(double)aDouble;
  70. - (const char *)stringValue;
  71. - (int)intValue;
  72. - (float)floatValue;
  73. - (double)doubleValue;
  74. - update;
  75. - updateCell:aCell;
  76. - updateCellInside:aCell;
  77. - drawCellInside:aCell;
  78. - drawCell:aCell;
  79. - selectCell:aCell;
  80. - drawSelf:(const NXRect *)rects :(int)rectCount;
  81. - sendAction:(SEL)theAction to:theTarget;
  82. - takeIntValueFrom:sender;
  83. - takeFloatValueFrom:sender;
  84. - takeDoubleValueFrom:sender;
  85. - takeStringValueFrom:sender;
  86. - currentEditor;
  87. - abortEditing;
  88. - validateEditing;
  89. - resetCursorRects;
  90. - write:(NXTypedStream *)stream;
  91. - read:(NXTypedStream *)stream;
  92.  
  93. /* 
  94.  * The following new... methods are now obsolete.  They remain in this  
  95.  * interface file for backward compatibility only.  Use Object's alloc method  
  96.  * and the init... methods defined in this class instead.
  97.  */
  98. + newFrame:(const NXRect *)frameRect;
  99.  
  100. @end
  101.